<!--  -->
<template>
  <div class="superread-layout">
    <router-view></router-view>
    <audio ref="audio" id="reverse-audio"></audio>
    <translateModal></translateModal>
    <readBroadModel></readBroadModel>
  </div>
</template>

<script>
import translateModal from "@/components/common/translateModal";
import readBroadModel from "@/components/common/readBroadModal";
export default {
  components: {
    translateModal,
    readBroadModel,
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style lang="less">
/* @import url(); 引入公共css类 */
.superread-layout {
  // display: flex;
  width: 100%;
  height: 100%;
  background-image: url("~assets/home/bg2.png");
  background-size: 1600px 800px; /* no */
  background-repeat: no-repeat;
  background-position: center center;
  /*定义了滚动条整体样式；*/
.article-content, .article-answer,.answer-sub-section, .list-wrap, .report-content {
  &::-webkit-scrollbar{
    width: 10px !important;
  }
}

/*定义了滚动条滑块的样式*/
.article-content,.article-answer, .answer-sub-section, .list-wrap, .report-content {
  &::-webkit-scrollbar-thumb {
    border-radius: 6px;
    width: 6px;
    background-color: #C7D2DD;
  }
}
/*定义了轨道的样式*/
.article-content,.article-answer, .answer-sub-section, .list-wrap, .report-content {
  &::-webkit-scrollbar-track {/*滚动条里面轨道*/
    width: 10px;
    border-radius: 8px;
    background: #F2F4F5;
  }
}
  .chose-course-top {
    position: relative;
    .header-left {
      position: absolute;
      left: 40px;
      width: 43%;
      .back-arrow {
        background-repeat: no-repeat;
      }
    }
    .btn-group {
      position: absolute;
      right: 40px;
    }
  }
}

.yxp {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.yxp-word-box {
  display: flex;
  flex-direction: column;
  position: relative;
  height: calc(100vh - 80px);
  overflow: auto;
  padding-top: 30px;
}
@media screen and (max-width: 1200px) {
  .yxp-word {
    width: 900px;
    height: 500px;
    &-top {
      padding-top: 30px;
      &-tit {
        font-size: 16px;
      }
      &-entry {
        padding-top: 4px;
      }
    }
    &-study {
      bottom: 21px;
      width: 150px;
      height: 34px;
      line-height: 34px;
      text-align: center;
      font-size:15px;
    }
  }
}
@media screen and (min-width: 1200px) and (max-width: 1620px) {
  .yxp-word {
    width: 1150px;
    height: 650px;
    &-top {
      padding-top: 26px;
      &-tit {
        font-size: 26px;
      }
      &-entry {
        padding-top: 6px;
      }
    }
    &-study {
      bottom: 30px;
      width: 170px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size:20px;
    }
  }
}
@media screen and (min-width: 1620px) {
  .yxp-word {
    width: 1300px;
    height: 750px;
    &-top {
      padding-top: 60px;
      &-tit {
        font-size: 30px;
      }
      &-entry {
        padding-top: 12px;
      }
    }
    &-study {
      bottom: 50px;
      width: 170px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size:20px;
    }
  }
}
.yxp-wordList-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  // width: 750px;
  
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  
}
 .yxp-wordList-box {
  position: relative;
  width: 100%;
  // height: 100%;
  // padding-top: 30px;
  // overflow: auto;
  &-item {
    // width: 1540px;
    width: 80vw;
    max-width: 750px;
    height: 100%;
    margin: 0 auto;
  }
}
.yxp-wordList-main {
  display: flex;
  flex-direction: column;
  text-align: left;
  
  .list-item {
     height:  calc((100vh - 230px) / 6); 
     min-height: 50px;
     min-width: 550px;

    // height: 90px;
    // line-height: 90px;
    transition: box-shadow 0.3s;
    &:hover {
      box-shadow: 0px 0px 10px rgba(39, 191, 163, 0.5);
    }
  }
  .active {
    .word-en,.yxp-wordList-item-l {
      font-size: 30px;
      font-weight: bold;
    }
    .word-zh,.yxp-wordList-item-r {
      font-size: 20px;
      font-weight: 400;
    }
  }
  .yxp-wordList-item-l {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    margin-right: 40px;
    padding-left: 40px;
  }
  .yxp-wordList-item-r {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 22%;
    padding-right: 40px;
    img {
      width: 30px;
      height: 30px;
      &:last-child {
        margin-left: 20px;
      }
      &:nth-child(3) {
        margin-left: 20px;
      }
    }
  }
}

.yxp-wordList-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  // height: 270px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding-bottom: 20px;
  z-index: 1300;
  .close {
      position: absolute;
      right: 20px;
      top: 15px;
      width: 20px;
      height: 20px;
      background: url(../../assets/word/close-icon.png) no-repeat;
      background-size: 20px 20px;
      cursor: pointer;
      &:hover {
        background-image: url(../../assets/word/close-hover.png);
      }
    }
  .tips {
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
    padding: 96px 20px 0;
  }
  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 53px;
    padding-bottom: 20px;
    .btn-item {
      width: 130px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #fff;
      background: #27bfa3;
      border-radius: 100px;
      cursor: pointer;
      &:first-child {
        margin-right: 20px;
      }
      &:hover {
        background: #18A38A;
      }
    }
  }
}
.yxp-wordList-item-r {
  .success {
      width: 30px;
      height: 30px;
      background: url(../../assets/word/success.png) no-repeat;
      background-size: 100% 100%;
      img {
        width: 30px;
        height: 30px;
      }
      &:last-child {
        margin-left: 20px;
      }
      &:nth-child(2) {
        background-image: url(../../assets/word/success-normal.png)
      }
      &:nth-child(3) {
        margin-left: 20px;
        background-image: url(../../assets/word/error-normal.png)
      }
      &:nth-child(4) {
        background-image: url(../../assets/word/error-sel.png)
      }
    }
    .img2 {
      &:hover {
        background-image: url(../../assets/word/success-hover.png)
      }
    }
    .img3 {
      &:hover {
        background-image: url(../../assets/word/error-hover.png)
      }
    }
}
.yxp-wordList-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    line-height: 80px;
    font-size: 20px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    text-align: center;
    background: #fff;
    padding: 0 40px;
  .back {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 30px;
    height: 27px;
    span {
      display: block;
      width: 30px;
      height: 27px;
      background: url(../../assets/word/back-icon.png) no-repeat;
      background-size: 100%;
     cursor: pointer;
    }
  }
  .yxp-top-c {
    width: 100%;
    font-size: 20px;
    flex: 1;
    font-weight: 700;
  }
  .yxp-top-r {
    position: absolute;
    right: 40px;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>
